package org.toonan.rental.chart;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class ChartLineView extends View
{
	private float HEIGHT = 350.0F;
	private float WIDTH = 740.0F;
	
	public ChartLineView(Context paramContext)
	{
		super(paramContext);
	}
	
	protected void onDraw(Canvas paramCanvas)
	{
		super.onDraw(paramCanvas);
		Paint localPaint1 = new Paint();
		localPaint1.setStrokeWidth(3.0F);
		localPaint1.setAntiAlias(true);
		Paint localPaint2 = new Paint();
		localPaint2.setTextSize(18.0F);
		int i = 0;
		if (i >= 6)
		{
			paramCanvas.drawLine(25.0F, this.HEIGHT, 25.0F, 50.0F, localPaint1);
			localPaint1.setStrokeWidth(2.0F);
			paramCanvas.drawLine(this.WIDTH, this.HEIGHT - 30.0F, this.WIDTH, 20.0F, localPaint1);
			paramCanvas.drawLine(26.0F, this.HEIGHT, this.WIDTH - 44.0F, this.HEIGHT, localPaint1);
			paramCanvas.drawLine(this.WIDTH - 44.0F, this.HEIGHT, this.WIDTH, this.HEIGHT - 30.0F,
					localPaint1);
			paramCanvas.drawLine(70.0F, this.HEIGHT - 30.0F, 70.0F, 20.0F, localPaint1);
			localPaint1.setStrokeWidth(1.0F);
			paramCanvas.drawLine(70.0F, this.HEIGHT - 30.0F, this.WIDTH, this.HEIGHT - 30.0F, localPaint1);
			paramCanvas.drawLine(26.0F, this.HEIGHT, 70.0F, this.HEIGHT - 30.0F, localPaint1);
			localPaint1.setARGB(255, 169, 169, 169);
		}
		for (int j = 0;; j++)
		{
			paramCanvas.drawText(i * 20 + "", 0.0F, this.HEIGHT - i * 60, localPaint2);
			i++;
			if (j >= 6)
			{
				break;
			}
			paramCanvas.drawLine(26.0F, this.HEIGHT - j * 60, 70.0F, this.HEIGHT - j * 60 - 30.0F,
					localPaint1);
			paramCanvas.drawLine(70.0F, this.HEIGHT - j * 60 - 30.0F, this.WIDTH, this.HEIGHT - j * 60
					- 30.0F, localPaint1);
		}
	}
}

/*
 * Location: E:\org.toonan.rental.chart.1353877036934_dex2jar.jar Qualified Name:
 * org.toonan.rental.chart.ChartLineView JD-Core Version: 0.6.0
 */